home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 7 / Amiga Format AFCD07 (Dec 1996, Issue 91).iso / serious / shareware / programming / aros / exec / sendio.c < prev    next >
C/C++ Source or Header  |  1996-09-12  |  2KB  |  70 lines

  1. /*
  2.     (C) 1995-96 AROS - The Amiga Replacement OS
  3.     $Id: sendio.c,v 1.4 1996/08/13 13:56:08 digulla Exp $
  4.     $Log: sendio.c,v $
  5.     Revision 1.4  1996/08/13 13:56:08  digulla
  6.     Replaced __AROS_LA by __AROS_LHA
  7.     Replaced some __AROS_LH*I by __AROS_LH*
  8.     Sorted and added includes
  9.  
  10.     Revision 1.3  1996/08/01 17:41:19  digulla
  11.     Added standard header for all files
  12.  
  13.     Desc:
  14.     Lang: english
  15. */
  16. #include <exec/execbase.h>
  17. #include <exec/io.h>
  18. #include <aros/libcall.h>
  19.  
  20. /*****************************************************************************
  21.  
  22.     NAME */
  23.     #include <clib/exec_protos.h>
  24.  
  25.     __AROS_LH1(void, SendIO,
  26.  
  27. /*  SYNOPSIS */
  28.     __AROS_LHA(struct IORequest *, iORequest, A1),
  29.  
  30. /*  LOCATION */
  31.     struct ExecBase *, SysBase, 77, Exec)
  32.  
  33. /*  FUNCTION
  34.     Start an asynchronous I/O request by calling the device's BeginIO()
  35.     vector. After sending the messages asynchronously you can wait for
  36.     the message to be replied at the I/O reply port.
  37.  
  38.     INPUTS
  39.     iORequest - Pointer to iorequest structure.
  40.  
  41.     RESULT
  42.  
  43.     NOTES
  44.  
  45.     EXAMPLE
  46.  
  47.     BUGS
  48.  
  49.     SEE ALSO
  50.     OpenDevice(), CloseDevice(), DoIO(), CheckIO(), AbortIO(), WaitIO()
  51.  
  52.     INTERNALS
  53.  
  54.     HISTORY
  55.  
  56. ******************************************************************************/
  57. {
  58.     __AROS_FUNC_INIT
  59.  
  60.     /* Prepare the message. Don't set quick bit. */
  61.     iORequest->io_Flags=0;
  62.     iORequest->io_Message.mn_Node.ln_Type=0;
  63.  
  64.     /* Call BeginIO() vector */
  65.     __AROS_LVO_CALL1(void,5,iORequest->io_Device,iORequest,A1);
  66.  
  67.     __AROS_FUNC_EXIT
  68. } /* SendIO */
  69.  
  70.